<%@page
	import="org.springframework.web.context.request.RequestAttributes"%>
<%@page import="org.springframework.web.servlet.ModelAndView"%>
<%@page import="ar.com.sectorwine.controllers.EmpresasController"%>
<%@page import="org.springframework.ui.Model"%>
<%@ page session="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<jsp:include page="../cabecera_home.jsp"></jsp:include>

<div class="marquesina_index" align="center">

	<br> <br> <br>
	<h1>Empresas Registradas</h1>

	<%
		try {
	%>

	<form:form method="post" modelAttribute="usuariosList">
		<b>Empresas registradas</b>
		<br>
		<c:forEach items="${empresasList}" var="empresa">
			<a href="empresas_perfil?id=${empresa.id}">${empresa.razonSocial}</a>
			<br>
		</c:forEach>
	</form:form>
	<%
		} catch (Exception e) {
			out.print(e.getMessage());
		}
	%>
</div>

<jsp:include page="../pie_de_pagina_compartida.jsp"></jsp:include>
